{capture name=css_urls}
	{$admin_theme_url}/css/jq-picker.css
{/capture}
{capture name=js_urls}
	{$default_admin_theme_url}/js/jq-picker.js
{/capture}
{include file="file:$admin_theme_global_path/_header.tpl"
	pageTitle=$page_title masthead=$page_title tinymce=true tinymce_field_id="aboutme"
	js_urls=$smarty.capture.js_urls css_urls=$smarty.capture.css_urls}
<form method="post" action="/default/useradmin/edit/username/{$user.username}" enctype="multipart/form-data">
	<p>

		<label for="full_name">Full Name</label>
		<input maxlength="{$full_name_length}" type="text" value="{$user.full_name}" name="full_name" id="full_name" class="text{if count($errors.full_name) gt 0} LV_invalid_field{/if}" />

		<label for="email">Email</label>
		<input type="text" value="{$user.email}" name="email" id="email" class="text" />

		<label for="gender">Gender</label>
		{html_options name=gender options=$genders selected=$user.gender}

		<label>Birthday</label>
		{html_select_date time=$user.birthday end_year=$end_year start_year=-100 month_value_format='%B' prefix='Birthday_' class="datepicker"}

		<label for="country">Country</label>
		{html_options name=country_code options=$countries selected=$user.country_code}

		<label for="aboutme">About Me</label>
		<textarea name="aboutme" id="aboutme">{$user.aboutme}</textarea>

		<label for="role_id">Roles</label>
		{html_options name="role_ids[]" id="role_ids" options=$roles selected=$selected_roles multiple="multiple" size="10" class="jq-picker"}

		<label for="newpassword">New Password</label>
		<input type="password" value="" name="newpassword" id="newpassword" class="text" />

		<label for="confirm">New Password (again)</label>
		<input type="password" value="" name="confirm" id="confirm" class="text" />

	</p>
	<p class="clearfix"><input type="submit" class="button save" value="Save"/></p>
</form>
